#include<stdio.h>
#define ONE 0x1
#define TWO 0x2
#define THREE 0x4
#define FOUR 0x8
#define FIVE 0x10
//按位打印  0000 0000 0000 0000 0000 0000 0000 0000
void Print(int flags)
{
 if(flags & ONE) printf("hello a\n");
 if(flags & TWO) printf("hello b\n");
 if(flags & THREE) printf("hello c\n");
 if(flags & FOUR) printf("hello d\n");
 if(flags & FIVE) printf("hello e\n");
}


int main()
{

  Print(ONE);
  printf("--------------------\n");
  Print(ONE |TWO);
  printf("--------------------\n");
  Print(ONE| TWO|THREE);
  printf("--------------------\n");
  Print(ONE| TWO|THREE|FOUR);
  printf("--------------------\n");
  Print(ONE| TWO|THREE|FOUR|FIVE);
  printf("--------------------\n");



  return 0;
}
